Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to trust ASP.NET Core dev cert on Win/MacOS #6385

Closed
wants to merge 5 commits into from

Conversation

Rick-Anderson
Copy link
Contributor

@Rick-Anderson Rick-Anderson commented May 12, 2018

Review URL

Fixes #6383 and #5393
Here's the output after installing the SDK and creating an ASP.NET Core app:

ASP.NET Core

Successfully installed the ASP.NET Core HTTPS Development Certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only). For establishing trust on other platforms please refer to the platform specific documentation.
For more information on configuring HTTPS see https://go.microsoft.com/fwlink/?linkid=848054.
Getting ready...
The template "ASP.NET Core Web App" was created successfully.

The fwlink 848054 points to this page. If you want a fwlink to the cert install/trust instructions, it's the same URL with #cert

@Rick-Anderson
Copy link
Contributor Author

@livarcocc @danroth27 do you know who on the CLI team wanted a fwlink to these instructions?

@Rick-Anderson Rick-Anderson requested a review from livarcocc May 12, 2018 03:36
@danroth27
Copy link
Member

@javiercn and I are the right reviewers for this.

@Rick-Anderson Rick-Anderson requested review from javiercn and danroth27 and removed request for livarcocc May 14, 2018 18:39
@Rick-Anderson
Copy link
Contributor Author

@danroth27 @javiercn 45 second review please.

@javiercn
Copy link
Member

I think the point of this topic is to show how to trust the certificate manually (without the tool) on each platform, so that people can diagnose/troubleshoot it if they have any issue with the tool.

@Rick-Anderson
Copy link
Contributor Author

@javiercn where would I find that information?

@Rick-Anderson Rick-Anderson changed the title How to trust ASP.NET Core dev cert How to trust ASP.NET Core dev cert on Win/MacOS May 18, 2018
@Rick-Anderson
Copy link
Contributor Author

@javiercn this is just the Win/MacOS portion. The other xplat will be covered in #3310

@javiercn
Copy link
Member

@Rick-Anderson Ok, I'm a bit confused now. We need to have a doc on how to do it with the tool and also how to do it manually in a platform idiomatic way on each platform.

  • powershell/trust cert store in windows
  • openssl/keychain on OSX
  • openssl/<> on Linux (At least Ubuntu, RedHat if possible)

Does that help clarify things?

@Rick-Anderson
Copy link
Contributor Author

@javiercn got it. I thought we wanted a section for dotnet command line for folks that don't read the message on how to trust the cert. Suppose they dotnet new Razor then cls the dotnet run. They'll have a cert problem.

So I'll close this PR and maybe include the information in this PR into #3310 (which will cover everything you mentioned).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants